package com.devin.converter;

import com.devin.utils.DateUtils;
import org.springframework.core.convert.converter.Converter;

import java.util.Date;

public class Date2StringConverter implements Converter<Date,String> {
    @Override
    public String convert(Date date) {
        String dateStr = DateUtils.toStr(date, "yyyy年MM月dd日");
        return dateStr;

    }
}
